﻿using System;
using System.Collections.Generic;
using System.Data.Entity.ModelConfiguration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Himall.Entity.Config
{
   public class ShopAccountItemInfoConfig : EntityTypeConfiguration<ShopAccountItemInfo>
    {
        public ShopAccountItemInfoConfig()
        {
            ToTable("Himall_ShopAccountItem");
            Property(item => item.ShopName).HasColumnType("varchar").HasMaxLength(100);
            Property(item => item.AccountNo).HasColumnType("varchar").HasMaxLength(50);
            Property(item => item.ReMark).HasColumnType("varchar").HasMaxLength(1000);
            Property(item => item.DetailId).HasColumnType("varchar").HasMaxLength(100);
            HasRequired(x => x.Himall_ShopAccount).WithMany(x => x.Himall_ShopAccountItem).HasForeignKey(x => x.AccoutID);
        }
    }
}
